package com.fangrui.service.impl;

import com.fangrui.mapper.DeptLogMapper;
import com.fangrui.pojo.DeptLog;
import com.fangrui.service.DeptLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

//Created by ✎﹏ℳ๓独赏☆独醉 on 2025/4/28 16:27
@Service
public class DeptLogServiceImpl implements DeptLogService {
    @Autowired
    private DeptLogMapper deptLogMapper;

    @Transactional(propagation = Propagation.REQUIRES_NEW)
    @Override
    public int createDeptLog(DeptLog deptLog) {
        return deptLogMapper.createDeptLog(deptLog);
    }
}
